﻿<UserControl x:Class="LEDDataBase.ManageLEDDataBase"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:db="clr-namespace:LEDDataBase"
             mc:Ignorable="d" 
             d:DesignHeight="1024" d:DesignWidth="768" 
             xmlns:my="clr-namespace:LEDDataBase">
    <UserControl.Resources>
        <db:LEDDataSet x:Key="lEDDataSet" />
        <CollectionViewSource x:Key="vwLEDSYSTEM" Source="{Binding Path=LEDSYSTEM, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwLEDLIST" Source="{Binding Path=LEDLIST, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwCTEXT" Source="{Binding Path=CTEXT, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwCPICTURE" Source="{Binding Path=CPICTURE, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwCMOVIE" Source="{Binding Path=CMOVIE, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwCCOUNT" Source="{Binding Path=CCOUNT, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwPROGRAM" Source="{Binding Path=PROGRAM, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwLEAF" Source="{Binding Path=LEAF, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwLEAFDETAIL" Source="{Binding Path=LEAFDETAIL, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwFONTTABLE" Source="{Binding Path=FONTTABLE, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwFORMATDEF" Source="{Binding Path=FORMATDEF, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwEFFECTDEF" Source="{Binding Path=EFFECTDEF, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwSPEEDDEF" Source="{Binding Path=SPEEDDEF, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwLOCATION" Source="{Binding Path=LOCATION, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwLAYOUT" Source="{Binding Path=LAYOUT, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwLAYOUTMASTER" Source="{Binding Path=LAYOUTMASTER, Source={StaticResource lEDDataSet}}" />
        <CollectionViewSource x:Key="vwCONTENTTYPE" Source="{Binding Path=CONTENTTYPE, Source={StaticResource lEDDataSet}}" />
    </UserControl.Resources>
    <Grid >
        <TabControl>
            <TabItem Header="System">
                <StackPanel>
                    <WrapPanel >
                        <Button Name="cmdLoadDataBase" Content="ReadDataBase" Click="cmdLoadDataBase_Click"></Button>
                        <Button Name="cmdSave2Local" Content="Save2Local" Click="cmdSave2Local_Click"></Button>
                        <Button Name="cmdReadLocal" Content="ReadLocal" Click="cmdReadLocal_Click"></Button>
                    </WrapPanel>
                <TabControl>
                    <TabItem Header="LEDSYSTEM">
                        <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="Auto"
                          ItemsSource="{Binding Source={StaticResource ResourceKey=vwLEDSYSTEM} }" Name="lEDSYSTEMDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" 
                                  Width="Auto">
                            <DataGrid.Columns>
                                <DataGridTextColumn x:Name="lSSYSTEMColumn" Binding="{Binding Path=LSSYSTEM}" Header="LSSYSTEM" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lSSYSTEMNAMEColumn" Binding="{Binding Path=LSSYSTEMNAME}" Header="LSSYSTEMNAME" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="mAXCONTENTIDColumn" Binding="{Binding Path=MAXCONTENTID}" Header="MAXCONTENTID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lSNEWDATEColumn" Binding="{Binding Path=LSNEWDATE}" Header="LSNEWDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lSNEWUSERColumn" Binding="{Binding Path=LSNEWUSER}" Header="LSNEWUSER" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lSLASTDATEColumn" Binding="{Binding Path=LSLASTDATE}" Header="LSLASTDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lSLASTUSERColumn" Binding="{Binding Path=LSLASTUSER}" Header="LSLASTUSER" Width="SizeToHeader" />
                            </DataGrid.Columns>
                        </DataGrid>
                    </TabItem>
                    <TabItem Header="LEDLIST">
                        <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="Auto" 
                                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwLEDLIST} }" Name="lEDLISTDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" 
                                  Width="Auto">
                            <DataGrid.Columns>
                                <DataGridTextColumn x:Name="lLSYSTEMColumn" Binding="{Binding Path=LLSYSTEM}" Header="LLSYSTEM" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lLLEDIDColumn" Binding="{Binding Path=LLLEDID}" Header="LLLEDID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lLLEDPREColumn" Binding="{Binding Path=LLLEDPRE}" Header="LLLEDPRE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lLLEDNUMBERColumn" Binding="{Binding Path=LLLEDNUMBER}" Header="LLLEDNUMBER" Width="SizeToHeader" />
                            </DataGrid.Columns>
                        </DataGrid>
                    </TabItem>
                    <TabItem Header="LOCATION">
                        <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="Auto"
                                  ItemsSource="{Binding Source={StaticResource vwLOCATION}}" Name="lOCATIONDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" Width="Auto">
                            <DataGrid.Columns>
                                <DataGridTextColumn x:Name="lCSYSTEMColumn" Binding="{Binding Path=LCSYSTEM}" Header="LCSYSTEM" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lCLOCATIONIDColumn" Binding="{Binding Path=LCLOCATIONID}" Header="LCLOCATIONID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lCLOCATIONNAMEColumn" Binding="{Binding Path=LCLOCATIONNAME}" Header="LCLOCATIONNAME" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lCDESColumn" Binding="{Binding Path=LCDES}" Header="LCDES" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lCD1Column" Binding="{Binding Path=LCD1}" Header="LCD 1" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lCD2Column" Binding="{Binding Path=LCD2}" Header="LCD 2" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lCD3Column" Binding="{Binding Path=LCD3}" Header="LCD 3" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lCD4Column" Binding="{Binding Path=LCD4}" Header="LCD 4" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lCD5Column" Binding="{Binding Path=LCD5}" Header="LCD 5" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lCD6Column" Binding="{Binding Path=LCD6}" Header="LCD 6" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lCNEWDATEColumn" Binding="{Binding Path=LCNEWDATE}" Header="LCNEWDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lCNEWUSERColumn" Binding="{Binding Path=LCNEWUSER}" Header="LCNEWUSER" Width="SizeToHeader" />
                            </DataGrid.Columns>
                        </DataGrid>
                    </TabItem>
                    <TabItem></TabItem>
                </TabControl>
                </StackPanel>
            </TabItem>
            <TabItem Header="Support">
                <TabControl>
                    <TabItem Header="CONTENTTYPE" DataContext="{StaticResource vwCONTENTTYPE}">
                        <StackPanel>
                            <WrapPanel>
                                <Button Height="30" Width="30"></Button>
                                <Grid HorizontalAlignment="Left" Name="grid58" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CTCONTENTDES:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <ComboBox DisplayMemberPath="CTCONTENTDES" Grid.Column="1" Grid.Row="0" Height="23"
                                              HorizontalAlignment="Left" ItemsSource="{Binding}" Margin="3" 
                                              Name="cTCONTENTDESComboBox" VerticalAlignment="Center" Width="120">
                                        <ComboBox.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <VirtualizingStackPanel />
                                            </ItemsPanelTemplate>
                                        </ComboBox.ItemsPanel>
                                    </ComboBox>
                                </Grid>
                            </WrapPanel>
                        <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" 
                                  Height="Auto" ItemsSource="{Binding}" Name="cONTENTTYPEDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" Width="Auto">
                            <DataGrid.Columns>
                                <DataGridTextColumn x:Name="cTSYSTEMColumn1" Binding="{Binding Path=CTSYSTEM}" Header="CTSYSTEM" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cTCONTENTTYPEColumn" Binding="{Binding Path=CTCONTENTTYPE}" Header="CTCONTENTTYPE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cTCONTENTDESColumn" Binding="{Binding Path=CTCONTENTDES}" Header="CTCONTENTDES" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cTCONTENTTABLEColumn" Binding="{Binding Path=CTCONTENTTABLE}" Header="CTCONTENTTABLE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cTNEWDATEColumn1" Binding="{Binding Path=CTNEWDATE}" Header="CTNEWDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cTNEWUSERColumn1" Binding="{Binding Path=CTNEWUSER}" Header="CTNEWUSER" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cTLASTDATEColumn1" Binding="{Binding Path=CTLASTDATE}" Header="CTLASTDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cTLASTUSERColumn1" Binding="{Binding Path=CTLASTUSER}" Header="CTLASTUSER" Width="SizeToHeader" />
                            </DataGrid.Columns>
                        </DataGrid>
                        </StackPanel>
                    </TabItem>
                    <TabItem Header="FONTTABLE">
                        <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="Auto" 
                                  ItemsSource="{Binding Source={StaticResource vwFONTTABLE}}" Name="fONTTABLEDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" Width="Auto">
                            <DataGrid.Columns>
                                <DataGridTextColumn x:Name="cFSYSTEMColumn" Binding="{Binding Path=CFSYSTEM}" Header="CFSYSTEM" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cFOINTIDColumn" Binding="{Binding Path=CFOINTID}" Header="CFOINTID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cFOINTNAMEColumn" Binding="{Binding Path=CFOINTNAME}" Header="CFOINTNAME" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cFFONTTYPEColumn" Binding="{Binding Path=CFFONTTYPE}" Header="CFFONTTYPE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cFFONTSIZEColumn" Binding="{Binding Path=CFFONTSIZE}" Header="CFFONTSIZE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cFFONTITALICColumn" Binding="{Binding Path=CFFONTITALIC}" Header="CFFONTITALIC" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cFFONTBOLDColumn" Binding="{Binding Path=CFFONTBOLD}" Header="CFFONTBOLD" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cFFONTUNDERLINEColumn" Binding="{Binding Path=CFFONTUNDERLINE}" Header="CFFONTUNDERLINE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cFFONEFFECTColumn" Binding="{Binding Path=CFFONEFFECT}" Header="CFFONEFFECT" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cFNEWDATEColumn" Binding="{Binding Path=CFNEWDATE}" Header="CFNEWDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cFNEWUSERColumn" Binding="{Binding Path=CFNEWUSER}" Header="CFNEWUSER" Width="SizeToHeader" />
                            </DataGrid.Columns>
                        </DataGrid>
                    </TabItem>
                    <TabItem Header="FORMATDEF">
                        <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="Auto" ItemsSource="{Binding Source={StaticResource vwFORMATDEF}}" 
                                  Name="fORMATDEFDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" Width="Auto">
                            <DataGrid.Columns>
                                <DataGridTextColumn x:Name="fMSYSTEMColumn" Binding="{Binding Path=FMSYSTEM}" Header="FMSYSTEM" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="fMIDColumn" Binding="{Binding Path=FMID}" Header="FMID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="fMDESColumn" Binding="{Binding Path=FMDES}" Header="FMDES" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="fMNEWDATEColumn" Binding="{Binding Path=FMNEWDATE}" Header="FMNEWDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="fMNEWUSERColumn" Binding="{Binding Path=FMNEWUSER}" Header="FMNEWUSER" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="fMLASTDATEColumn" Binding="{Binding Path=FMLASTDATE}" Header="FMLASTDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="fMLASTUSERColumn" Binding="{Binding Path=FMLASTUSER}" Header="FMLASTUSER" Width="SizeToHeader" />
                            </DataGrid.Columns>
                        </DataGrid>
                    </TabItem>
                    <TabItem Header="EFFECTDEF">
                        <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="Auto" ItemsSource="{Binding Source={StaticResource vwEFFECTDEF}}" 
                                  Name="eFFECTDEFDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" Width="Auto">
                            <DataGrid.Columns>
                                <DataGridTextColumn x:Name="eTSYSTEMColumn" Binding="{Binding Path=ETSYSTEM}" Header="ETSYSTEM" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="eTIDColumn" Binding="{Binding Path=ETID}" Header="ETID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="eFEFFECTColumn" Binding="{Binding Path=EFEFFECT}" Header="EFEFFECT" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="eFEFFECTDESColumn" Binding="{Binding Path=EFEFFECTDES}" Header="EFEFFECTDES" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="eFNEWDATEColumn" Binding="{Binding Path=EFNEWDATE}" Header="EFNEWDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="eFNEWUSERColumn" Binding="{Binding Path=EFNEWUSER}" Header="EFNEWUSER" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="eFLASTDATEColumn" Binding="{Binding Path=EFLASTDATE}" Header="EFLASTDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="eFLASTUSERColumn" Binding="{Binding Path=EFLASTUSER}" Header="EFLASTUSER" Width="SizeToHeader" />
                            </DataGrid.Columns>
                        </DataGrid>
                    </TabItem>
                    <TabItem Header="SPEEDDEF">
                        <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="Auto"
                                  ItemsSource="{Binding Source={StaticResource vwSPEEDDEF}}" Name="sPEEDDEFDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" Width="Auto">
                            <DataGrid.Columns>
                                <DataGridTextColumn x:Name="sPSYSTEMColumn" Binding="{Binding Path=SPSYSTEM}" Header="SPSYSTEM" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="sPIDColumn" Binding="{Binding Path=SPID}" Header="SPID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="sPSPEEDColumn" Binding="{Binding Path=SPSPEED}" Header="SPSPEED" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="sPNEWDATEColumn" Binding="{Binding Path=SPNEWDATE}" Header="SPNEWDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="sPNEWUSERColumn" Binding="{Binding Path=SPNEWUSER}" Header="SPNEWUSER" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="sPLASTDATEColumn" Binding="{Binding Path=SPLASTDATE}" Header="SPLASTDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="sPLASTUSERColumn" Binding="{Binding Path=SPLASTUSER}" Header="SPLASTUSER" Width="SizeToHeader" />
                            </DataGrid.Columns>
                        </DataGrid>
                    </TabItem>
                    <TabItem Header="Layout">
                        <StackPanel>
                            <WrapPanel>
                                <Button Height="30"></Button>
                                <Grid   HorizontalAlignment="Left" Name="grid53" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="模板:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <ListBox DisplayMemberPath="LYLAYOUTDES" 
                                             Grid.Column="0" 
                                             Grid.Row="1" Height="100"  MaxHeight="100"
                                             HorizontalAlignment="Left" ItemsSource="{Binding Source={StaticResource ResourceKey=vwLAYOUT}}" 
                                             Margin="3" Name="lYLAYOUTNAMEListBox" 
                                             VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLAYOUT}" HorizontalAlignment="Left" Name="grid54" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LYLAYOUTNAME:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <MediaElement Grid.Column="1" Grid.Row="0" Height="120" HorizontalAlignment="Left" Margin="3" Name="lYLAYOUTNAMEMediaElement" Source="{Binding Path=LYLAYOUTNAME}" VerticalAlignment="Center" Width="160" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLAYOUT}" HorizontalAlignment="Left" Name="grid55" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LYLAYOUTDES:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <ComboBox DisplayMemberPath="LYLAYOUTDES" Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" ItemsSource="{Binding}" Margin="3" Name="lYLAYOUTDESComboBox" VerticalAlignment="Center" Width="120">
                                        <ComboBox.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <VirtualizingStackPanel />
                                            </ItemsPanelTemplate>
                                        </ComboBox.ItemsPanel>
                                    </ComboBox>
                                </Grid>
                            </WrapPanel>
                        <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="200" ItemsSource="{Binding Source={StaticResource ResourceKey=vwLAYOUT}}" Name="lAYOUTDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" Width="400">
                            <DataGrid.Columns>
                                <DataGridTextColumn x:Name="lYSYSTEMColumn" Binding="{Binding Path=LYSYSTEM}" Header="LYSYSTEM" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lYLAYOUTIDColumn" Binding="{Binding Path=LYLAYOUTID}" Header="LYLAYOUTID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lYLAYOUTNAMEColumn" Binding="{Binding Path=LYLAYOUTNAME}" Header="LYLAYOUTNAME" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lYLAYOUTDESColumn" Binding="{Binding Path=LYLAYOUTDES}" Header="LYLAYOUTDES" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lYNEWDATEColumn" Binding="{Binding Path=LYNEWDATE}" Header="LYNEWDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lYNEWUSERColumn" Binding="{Binding Path=LYNEWUSER}" Header="LYNEWUSER" Width="SizeToHeader" />
                            </DataGrid.Columns>
                        </DataGrid>
                        </StackPanel>
                    </TabItem>
                    <TabItem Header="LayoutMaster">
                        <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="200" 
                                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwLAYOUTMASTER}}"
                                  Name="lAYOUTMASTERDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" Width="400">
                            <DataGrid.Columns>
                                <DataGridTextColumn x:Name="lMSYSTEMColumn" Binding="{Binding Path=LMSYSTEM}" Header="LMSYSTEM" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lMLAYOUTIDColumn" Binding="{Binding Path=LMLAYOUTID}" Header="LMLAYOUTID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lMZONEIDColumn" Binding="{Binding Path=LMZONEID}" Header="LMZONEID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lMZONENAMEColumn" Binding="{Binding Path=LMZONENAME}" Header="LMZONENAME" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lMLTOPXColumn" Binding="{Binding Path=LMLTOPX}" Header="LMLTOPX" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lMLTOPYColumn" Binding="{Binding Path=LMLTOPY}" Header="LMLTOPY" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lMLBOTTOMXColumn" Binding="{Binding Path=LMLBOTTOMX}" Header="LMLBOTTOMX" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lMLBOTTOMYColumn" Binding="{Binding Path=LMLBOTTOMY}" Header="LMLBOTTOMY" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lMRTOPXColumn" Binding="{Binding Path=LMRTOPX}" Header="LMRTOPX" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lMRTOPYColumn" Binding="{Binding Path=LMRTOPY}" Header="LMRTOPY" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lMRBOTTOMXColumn" Binding="{Binding Path=LMRBOTTOMX}" Header="LMRBOTTOMX" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lMRBOTTOMYColumn" Binding="{Binding Path=LMRBOTTOMY}" Header="LMRBOTTOMY" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lMNEWDATEColumn" Binding="{Binding Path=LMNEWDATE}" Header="LMNEWDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lMNEWUSERColumn" Binding="{Binding Path=LMNEWUSER}" Header="LMNEWUSER" Width="SizeToHeader" />
                            </DataGrid.Columns>
                        </DataGrid>
                    </TabItem>
                </TabControl>
            </TabItem>
            <TabItem Header="Program">
                <TabControl>
                    <TabItem Header="PROGRAM">
                        <StackPanel>
                            <WrapPanel>
                                <StackPanel>
                                    <WrapPanel>
                                        <Grid HorizontalAlignment="Left" Name="grid1" VerticalAlignment="Top">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition Width="Auto" />
                                            </Grid.ColumnDefinitions>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto" />
                                            </Grid.RowDefinitions>
                                            <Label Content="PRSYSTEM:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                            <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="pRSYSTEMTextBox" 
                                             Text="{Binding Path=PRSYSTEM, Source={StaticResource ResourceKey=vwPROGRAM}, Mode=TwoWay, 
                                        ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="40" />
                                        </Grid>
                                        <Grid HorizontalAlignment="Left" Name="grid2" VerticalAlignment="Top">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition Width="Auto" />
                                            </Grid.ColumnDefinitions>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto" />
                                            </Grid.RowDefinitions>
                                            <Label Content="PRLEDID:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                            <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="pRLEDIDTextBox" 
                                             Text="{Binding Path=PRLEDID, Source={StaticResource ResourceKey=vwPROGRAM},  
                                        Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="40" />
                                        </Grid>
                                    </WrapPanel>
                                    <WrapPanel>
                                        <Grid HorizontalAlignment="Left" Name="grid3" VerticalAlignment="Top">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition Width="Auto" />
                                            </Grid.ColumnDefinitions>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto" />
                                            </Grid.RowDefinitions>
                                            <Label Content="PRPROGRAMID:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                            <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" 
                                             Name="pRPROGRAMIDTextBox" Text="{Binding Path=PRPROGRAMID, 
                                        Source={StaticResource ResourceKey=vwPROGRAM}, Mode=TwoWay, ValidatesOnExceptions=true, 
                                        NotifyOnValidationError=true}" VerticalAlignment="Center" Width="40" />
                                        </Grid>
                                        <Grid HorizontalAlignment="Left" Name="grid4" VerticalAlignment="Top">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition Width="Auto" />
                                            </Grid.ColumnDefinitions>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto" />
                                            </Grid.RowDefinitions>
                                            <Label Content="PRPROGRAMNAME:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                            <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3"
                                             Name="pRPROGRAMNAMETextBox" Text="{Binding Path=PRPROGRAMNAME, Source={StaticResource ResourceKey=vwPROGRAM}, 
                                        Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="60" />
                                        </Grid>
                                        <Grid HorizontalAlignment="Left" Name="grid5" VerticalAlignment="Top">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition Width="Auto" />
                                            </Grid.ColumnDefinitions>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto" />
                                            </Grid.RowDefinitions>
                                            <Label Content="PRPROGDES:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                            <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="pRPROGDESTextBox" 
                                             Text="{Binding Path=PRPROGDES, Source={StaticResource ResourceKey=vwPROGRAM}, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="240" />
                                        </Grid>
                                    </WrapPanel>
                                    <WrapPanel>
                                        <Grid  HorizontalAlignment="Left" Name="grid6" VerticalAlignment="Top">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition Width="Auto" />
                                            </Grid.ColumnDefinitions>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto" />
                                            </Grid.RowDefinitions>
                                            <Label Content="PRNEWDATE:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                            <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="pRNEWDATETextBox"
                                             Text="{Binding Path=PRNEWDATE, Source={StaticResource ResourceKey=vwPROGRAM}, 
                                        Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="60" />
                                        </Grid>
                                        <Grid HorizontalAlignment="Left" Name="grid7" VerticalAlignment="Top">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition Width="Auto" />
                                            </Grid.ColumnDefinitions>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto" />
                                            </Grid.RowDefinitions>
                                            <Label Content="PRNEWUSER:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                            <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="pRNEWUSERTextBox" 
                                             Text="{Binding Path=PRNEWUSER, Source={StaticResource ResourceKey=vwPROGRAM},  Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="60" />
                                        </Grid>
                                        <Grid  HorizontalAlignment="Left" Name="grid8" VerticalAlignment="Top">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition Width="Auto" />
                                            </Grid.ColumnDefinitions>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto" />
                                            </Grid.RowDefinitions>
                                            <Label Content="PRPROGRAMID:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                            <ComboBox DisplayMemberPath="PRPROGRAMID" Grid.Column="1" Grid.Row="0" Height="23" 
                                                      HorizontalAlignment="Left" ItemsSource="{Binding Source={StaticResource ResourceKey=vwPROGRAM}}"
                                                      Margin="3" Name="pRPROGRAMIDComboBox" VerticalAlignment="Center" Width="120">
                                                <ComboBox.ItemsPanel>
                                                    <ItemsPanelTemplate>
                                                        <VirtualizingStackPanel />
                                                    </ItemsPanelTemplate>
                                                </ComboBox.ItemsPanel>
                                            </ComboBox>
                                        </Grid>
                                    </WrapPanel>
                                </StackPanel> 
                            </WrapPanel>
                            <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="Auto" 
                                  ItemsSource="{Binding Source={StaticResource vwPROGRAM}}" Name="pROGRAMDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" Width="Auto">
                            <DataGrid.Columns>
                                <DataGridTextColumn x:Name="pRSYSTEMColumn" Binding="{Binding Path=PRSYSTEM}" Header="PRSYSTEM" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="pRLEDIDColumn" Binding="{Binding Path=PRLEDID}" Header="PRLEDID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="pRPROGRAMIDColumn" Binding="{Binding Path=PRPROGRAMID}" Header="PRPROGRAMID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="pRPROGRAMNAMEColumn" Binding="{Binding Path=PRPROGRAMNAME}" Header="PRPROGRAMNAME" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="pRPROGDESColumn" Binding="{Binding Path=PRPROGDES}" Header="PRPROGDES" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="pRNEWDATEColumn" Binding="{Binding Path=PRNEWDATE}" Header="PRNEWDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="pRNEWUSERColumn" Binding="{Binding Path=PRNEWUSER}" Header="PRNEWUSER" Width="SizeToHeader" />
                            </DataGrid.Columns>
                        </DataGrid>
             
                        </StackPanel>
                    </TabItem>
                    <TabItem Header="LEAF">
                        <StackPanel>
                            <WrapPanel>
                                <Grid DataContext="{StaticResource vwLEAF}" HorizontalAlignment="Left" Name="grid9" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LFSYSTEM:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lFSYSTEMTextBox" Text="{Binding Path=LFSYSTEM, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="40" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAF}" HorizontalAlignment="Left" Name="grid10" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAF}" HorizontalAlignment="Left" Name="grid12" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LFLEAFID:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lFLEAFIDTextBox" Text="{Binding Path=LFLEAFID, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="30" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAF}" HorizontalAlignment="Left" Name="grid13" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LFLEAFNAME:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lFLEAFNAMETextBox" Text="{Binding Path=LFLEAFNAME, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAF}" HorizontalAlignment="Left" Name="grid14" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LFDURATION:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lFDURATIONTextBox" Text="{Binding Path=LFDURATION, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAF}" HorizontalAlignment="Left" Name="grid15" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LFLEAFDES:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lFLEAFDESTextBox" Text="{Binding Path=LFLEAFDES, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAF}" HorizontalAlignment="Left" Name="grid11" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LFPROGRAMID:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lFPROGRAMIDTextBox" Text="{Binding Path=LFPROGRAMID, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAF}" HorizontalAlignment="Left" Name="grid16" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LFLEDID:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lFLEDIDTextBox" Text="{Binding Path=LFLEDID, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAF}" HorizontalAlignment="Left" Name="grid17" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LFLEDID:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <ComboBox DisplayMemberPath="LFLEDID" Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" ItemsSource="{Binding}" Margin="3" Name="lFLEDIDComboBox" VerticalAlignment="Center" Width="120">
                                        <ComboBox.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <VirtualizingStackPanel />
                                            </ItemsPanelTemplate>
                                        </ComboBox.ItemsPanel>
                                    </ComboBox>
                                </Grid>
                            </WrapPanel>
                        <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="Auto" 
                                  ItemsSource="{Binding Source={StaticResource vwLEAF}}" Name="lEAFDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" Width="Auto">
                            <DataGrid.Columns>
                                <DataGridTextColumn x:Name="lFSYSTEMColumn" Binding="{Binding Path=LFSYSTEM}" Header="LFSYSTEM" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lFLEDIDColumn" Binding="{Binding Path=LFLEDID}" Header="LFLEDID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lFPROGRAMIDColumn" Binding="{Binding Path=LFPROGRAMID}" Header="LFPROGRAMID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lFLEAFIDColumn" Binding="{Binding Path=LFLEAFID}" Header="LFLEAFID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lFLEAFNAMEColumn" Binding="{Binding Path=LFLEAFNAME}" Header="LFLEAFNAME" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lFDURATIONColumn" Binding="{Binding Path=LFDURATION}" Header="LFDURATION" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lFLEAFDESColumn" Binding="{Binding Path=LFLEAFDES}" Header="LFLEAFDES" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lFNEWDATEColumn" Binding="{Binding Path=LFNEWDATE}" Header="LFNEWDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lFNEWUSERColumn" Binding="{Binding Path=LFNEWUSER}" Header="LFNEWUSER" Width="SizeToHeader" />
                            </DataGrid.Columns>
                        </DataGrid>
                        </StackPanel>
                    </TabItem>
                    <TabItem Header="LEAFDETAIL">
                        <StackPanel>
                            <WrapPanel>
                                <Grid DataContext="{StaticResource vwLEAFDETAIL}" HorizontalAlignment="Left" Name="grid18" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LDSYSTEM:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lDSYSTEMTextBox" Text="{Binding Path=LDSYSTEM, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAFDETAIL}" HorizontalAlignment="Left" Name="grid19" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LDLEDID:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lDLEDIDTextBox" Text="{Binding Path=LDLEDID, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAFDETAIL}" HorizontalAlignment="Left" Name="grid20" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LDPROGRAMID:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lDPROGRAMIDTextBox" Text="{Binding Path=LDPROGRAMID, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAFDETAIL}" HorizontalAlignment="Left" Name="grid21" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LDLEAFID:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lDLEAFIDTextBox" Text="{Binding Path=LDLEAFID, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAFDETAIL}" HorizontalAlignment="Left" Name="grid22" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LDAREAID:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lDAREAIDTextBox" Text="{Binding Path=LDAREAID, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAFDETAIL}" HorizontalAlignment="Left" Name="grid23" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LDCONTENTTYPE:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lDCONTENTTYPETextBox" Text="{Binding Path=LDCONTENTTYPE, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAFDETAIL}" HorizontalAlignment="Left" Name="grid24" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LDLTOPX:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lDLTOPXTextBox" Text="{Binding Path=LDLTOPX, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAFDETAIL}" HorizontalAlignment="Left" Name="grid25" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LDLTOPY:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lDLTOPYTextBox" Text="{Binding Path=LDLTOPY, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAFDETAIL}" HorizontalAlignment="Left" Name="grid26" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LDLBOTTOMX:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lDLBOTTOMXTextBox" Text="{Binding Path=LDLBOTTOMX, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAFDETAIL}" HorizontalAlignment="Left" Name="grid27" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LDLBOTTOMY:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lDLBOTTOMYTextBox" Text="{Binding Path=LDLBOTTOMY, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAFDETAIL}" HorizontalAlignment="Left" Name="grid28" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LDRTOPX:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lDRTOPXTextBox" Text="{Binding Path=LDRTOPX, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAFDETAIL}" HorizontalAlignment="Left" Name="grid29" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LDRTOPY:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lDRTOPYTextBox" Text="{Binding Path=LDRTOPY, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAFDETAIL}" HorizontalAlignment="Left" Name="grid30" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LDRBOTTOMX:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lDRBOTTOMXTextBox" Text="{Binding Path=LDRBOTTOMX, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAFDETAIL}" HorizontalAlignment="Left" Name="grid31" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LDRBOTTOMY:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="lDRBOTTOMYTextBox" Text="{Binding Path=LDRBOTTOMY, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAFDETAIL}" HorizontalAlignment="Left" Name="grid56" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LDAREAID:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <ListView DisplayMemberPath="LDAREAID" Grid.Column="1" Grid.Row="0" Height="100" HorizontalAlignment="Left" ItemsSource="{Binding}" Margin="3" Name="lDAREAIDListView" SelectionMode="Single" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwLEAFDETAIL}" HorizontalAlignment="Left" Name="grid57" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="LDAREAID:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <ComboBox DisplayMemberPath="LDAREAID" Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" ItemsSource="{Binding}" Margin="3" Name="lDAREAIDComboBox" VerticalAlignment="Center" Width="120">
                                        <ComboBox.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <VirtualizingStackPanel />
                                            </ItemsPanelTemplate>
                                        </ComboBox.ItemsPanel>
                                    </ComboBox>
                                </Grid>
                            </WrapPanel> 
                                <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="Auto"
                                  ItemsSource="{Binding Source={StaticResource vwLEAFDETAIL}}" Name="lEAFDETAILDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" Width="Auto">
                            <DataGrid.Columns>
                                <DataGridTextColumn x:Name="lDSYSTEMColumn" Binding="{Binding Path=LDSYSTEM}" Header="LDSYSTEM" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lDLEDIDColumn" Binding="{Binding Path=LDLEDID}" Header="LDLEDID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lDPROGRAMIDColumn" Binding="{Binding Path=LDPROGRAMID}" Header="LDPROGRAMID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lDLEAFIDColumn" Binding="{Binding Path=LDLEAFID}" Header="LDLEAFID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lDAREAIDColumn" Binding="{Binding Path=LDAREAID}" Header="LDAREAID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lDCONTENTTYPEColumn" Binding="{Binding Path=LDCONTENTTYPE}" Header="LDCONTENTTYPE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lDLTOPXColumn" Binding="{Binding Path=LDLTOPX}" Header="LDLTOPX" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lDLTOPYColumn" Binding="{Binding Path=LDLTOPY}" Header="LDLTOPY" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lDLBOTTOMXColumn" Binding="{Binding Path=LDLBOTTOMX}" Header="LDLBOTTOMX" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lDLBOTTOMYColumn" Binding="{Binding Path=LDLBOTTOMY}" Header="LDLBOTTOMY" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lDRTOPXColumn" Binding="{Binding Path=LDRTOPX}" Header="LDRTOPX" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lDRTOPYColumn" Binding="{Binding Path=LDRTOPY}" Header="LDRTOPY" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lDRBOTTOMXColumn" Binding="{Binding Path=LDRBOTTOMX}" Header="LDRBOTTOMX" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lDRBOTTOMYColumn" Binding="{Binding Path=LDRBOTTOMY}" Header="LDRBOTTOMY" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lDNEWDATEColumn" Binding="{Binding Path=LDNEWDATE}" Header="LDNEWDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="lDNEWUSERColumn" Binding="{Binding Path=LDNEWUSER}" Header="LDNEWUSER" Width="SizeToHeader" />
                            </DataGrid.Columns>
                        </DataGrid>
                           
                        </StackPanel>
                    </TabItem>
                </TabControl>
            </TabItem>
            <TabItem Header="Leaf">
                <TabControl>
                    <TabItem Header="CTEXT">
                        <StackPanel>
                            <WrapPanel>
                                <Button Height="30">Load</Button>
                                <Grid DataContext="{StaticResource vwCTEXT}" HorizontalAlignment="Left" Name="grid32" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CTSYSTEM:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cTSYSTEMTextBox" Text="{Binding Path=CTSYSTEM, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwCTEXT}" HorizontalAlignment="Left" Name="grid33" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CTEXTID:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cTEXTIDTextBox" Text="{Binding Path=CTEXTID, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwCTEXT}" HorizontalAlignment="Left" Name="grid34" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CTCONTENT:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cTCONTENTTextBox" Text="{Binding Path=CTCONTENT, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwCTEXT}" HorizontalAlignment="Left" Name="grid35" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CTEXTFILE:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cTEXTFILETextBox" Text="{Binding Path=CTEXTFILE, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwCTEXT}" HorizontalAlignment="Left" Name="grid36" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CTFONTID:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cTFONTIDTextBox" Text="{Binding Path=CTFONTID, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwCTEXT}" HorizontalAlignment="Left" Name="grid37" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CTEFFECT:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cTEFFECTTextBox" Text="{Binding Path=CTEFFECT, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwCTEXT}" HorizontalAlignment="Left" Name="grid38" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CTSPEED:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cTSPEEDTextBox" Text="{Binding Path=CTSPEED, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwCTEXT}" HorizontalAlignment="Left" Name="grid39" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CTTRANSPARENT:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cTTRANSPARENTTextBox" Text="{Binding Path=CTTRANSPARENT, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwCTEXT}" HorizontalAlignment="Left" Name="grid40" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CTNEWDATE:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cTNEWDATETextBox" Text="{Binding Path=CTNEWDATE, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwCTEXT}" HorizontalAlignment="Left" Name="grid41" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CTNEWUSER:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cTNEWUSERTextBox" Text="{Binding Path=CTNEWUSER, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwCTEXT}" HorizontalAlignment="Left" Name="grid42" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CTLASTDATE:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cTLASTDATETextBox" Text="{Binding Path=CTLASTDATE, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwCTEXT}" HorizontalAlignment="Left" Name="grid43" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CTLASTUSER:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cTLASTUSERTextBox" Text="{Binding Path=CTLASTUSER, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                            </WrapPanel>
                        <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="Auto" 
                                  ItemsSource="{Binding Source={StaticResource vwCTEXT}}" Name="cTEXTDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" Width="Auto">
                            <DataGrid.Columns>
                                <DataGridTextColumn x:Name="cTSYSTEMColumn" Binding="{Binding Path=CTSYSTEM}" Header="CTSYSTEM" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cTEXTIDColumn" Binding="{Binding Path=CTEXTID}" Header="CTEXTID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cTEXTColumn" Binding="{Binding Path=CTEXT}" Header="CTEXT" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cTEXTFILEColumn" Binding="{Binding Path=CTEXTFILE}" Header="CTEXTFILE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cTFONTIDColumn" Binding="{Binding Path=CTFONTID}" Header="CTFONTID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cTEFFECTColumn" Binding="{Binding Path=CTEFFECT}" Header="CTEFFECT" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cTSPEEDColumn" Binding="{Binding Path=CTSPEED}" Header="CTSPEED" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cTTRANSPARENTColumn" Binding="{Binding Path=CTTRANSPARENT}" Header="CTTRANSPARENT" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cTNEWDATEColumn" Binding="{Binding Path=CTNEWDATE}" Header="CTNEWDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cTNEWUSERColumn" Binding="{Binding Path=CTNEWUSER}" Header="CTNEWUSER" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cTLASTDATEColumn" Binding="{Binding Path=CTLASTDATE}" Header="CTLASTDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cTLASTUSERColumn" Binding="{Binding Path=CTLASTUSER}" Header="CTLASTUSER" Width="SizeToHeader" />
                            </DataGrid.Columns>
                        </DataGrid>
                        </StackPanel>
                    </TabItem>
                    <TabItem Header="CPICTURE">
                        <StackPanel>
                            <WrapPanel>
                                <Button Height="30">Load</Button>
                                <Grid DataContext="{StaticResource vwCPICTURE}" HorizontalAlignment="Left" Name="grid44" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CPSYSTEM:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cPSYSTEMTextBox" Text="{Binding Path=CPSYSTEM, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwCPICTURE}" HorizontalAlignment="Left" Name="grid45" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CPPICTUREID:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cPPICTUREIDTextBox" Text="{Binding Path=CPPICTUREID, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwCPICTURE}" HorizontalAlignment="Left" Name="grid46" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CPPICTUREAME:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cPPICTUREAMETextBox" Text="{Binding Path=CPPICTUREAME, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwCPICTURE}" HorizontalAlignment="Left" Name="grid47" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CPPICTUREFILE:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cPPICTUREFILETextBox" Text="{Binding Path=CPPICTUREFILE, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwCPICTURE}" HorizontalAlignment="Left" Name="grid48" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CPWIDTH:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cPWIDTHTextBox" Text="{Binding Path=CPWIDTH, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwCPICTURE}" HorizontalAlignment="Left" Name="grid49" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CPHEIGHT:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cPHEIGHTTextBox" Text="{Binding Path=CPHEIGHT, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwCPICTURE}" HorizontalAlignment="Left" Name="grid50" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CPEFFECT:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cPEFFECTTextBox" Text="{Binding Path=CPEFFECT, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwCPICTURE}" HorizontalAlignment="Left" Name="grid51" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CPSPEED:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cPSPEEDTextBox" Text="{Binding Path=CPSPEED, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                                <Grid DataContext="{StaticResource vwCPICTURE}" HorizontalAlignment="Left" Name="grid52" VerticalAlignment="Top">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label Content="CPTRANSPARENT:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                                    <TextBox Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="3" Name="cPTRANSPARENTTextBox" Text="{Binding Path=CPTRANSPARENT, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                                </Grid>
                            </WrapPanel> 
                        <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="Auto" ItemsSource="{Binding Source={StaticResource vwCPICTURE}}" 
                                  Name="cPICTUREDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" Width="Auto">
                            <DataGrid.Columns>
                                <DataGridTextColumn x:Name="cPSYSTEMColumn" Binding="{Binding Path=CPSYSTEM}" Header="CPSYSTEM" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cPPICTUREIDColumn" Binding="{Binding Path=CPPICTUREID}" Header="CPPICTUREID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cPPICTUREAMEColumn" Binding="{Binding Path=CPPICTUREAME}" Header="CPPICTUREAME" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cPPICTUREFILEColumn" Binding="{Binding Path=CPPICTUREFILE}" Header="CPPICTUREFILE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cPWIDTHColumn" Binding="{Binding Path=CPWIDTH}" Header="CPWIDTH" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cPHEIGHTColumn" Binding="{Binding Path=CPHEIGHT}" Header="CPHEIGHT" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cPEFFECTColumn" Binding="{Binding Path=CPEFFECT}" Header="CPEFFECT" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cPSPEEDColumn" Binding="{Binding Path=CPSPEED}" Header="CPSPEED" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cPTRANSPARENTColumn" Binding="{Binding Path=CPTRANSPARENT}" Header="CPTRANSPARENT" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cPNEWDATEColumn" Binding="{Binding Path=CPNEWDATE}" Header="CPNEWDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cPNEWUSERColumn" Binding="{Binding Path=CPNEWUSER}" Header="CPNEWUSER" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cPLASTDATEColumn" Binding="{Binding Path=CPLASTDATE}" Header="CPLASTDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cPLASTUSERColumn" Binding="{Binding Path=CPLASTUSER}" Header="CPLASTUSER" Width="SizeToHeader" />
                            </DataGrid.Columns>
                        </DataGrid>
                        </StackPanel>
                    </TabItem>
                    <TabItem Header="CMOVIE">
                        <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="Auto" 
                                  ItemsSource="{Binding Source={StaticResource vwCMOVIE}}" Name="cMOVIEDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" Width="Auto">
                            <DataGrid.Columns>
                                <DataGridTextColumn x:Name="cMSYSTEMColumn" Binding="{Binding Path=CMSYSTEM}" Header="CMSYSTEM" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cMMOVIEIDColumn" Binding="{Binding Path=CMMOVIEID}" Header="CMMOVIEID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cMMOVIENAMEColumn" Binding="{Binding Path=CMMOVIENAME}" Header="CMMOVIENAME" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cMMOVIEFILEColumn" Binding="{Binding Path=CMMOVIEFILE}" Header="CMMOVIEFILE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cPNEWDATEColumn1" Binding="{Binding Path=CPNEWDATE}" Header="CPNEWDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cPNEWUSERColumn1" Binding="{Binding Path=CPNEWUSER}" Header="CPNEWUSER" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cPLASTDATEColumn1" Binding="{Binding Path=CPLASTDATE}" Header="CPLASTDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cPLASTUSERColumn1" Binding="{Binding Path=CPLASTUSER}" Header="CPLASTUSER" Width="SizeToHeader" />
                            </DataGrid.Columns>
                        </DataGrid>
                    </TabItem>
                    <TabItem Header="CCOUNT">
                        <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="Auto" ItemsSource="{Binding Source={StaticResource vwCCOUNT}}" 
                                  Name="cCOUNTDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" Width="Auto">
                            <DataGrid.Columns>
                                <DataGridTextColumn x:Name="cCSYSTEMColumn" Binding="{Binding Path=CCSYSTEM}" Header="CCSYSTEM" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cCCOUNTIDColumn" Binding="{Binding Path=CCCOUNTID}" Header="CCCOUNTID" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cCCOUNTNAMEColumn" Binding="{Binding Path=CCCOUNTNAME}" Header="CCCOUNTNAME" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cCSTDDATETIMEColumn" Binding="{Binding Path=CCSTDDATETIME}" Header="CCSTDDATETIME" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cCCLOCKTYPEColumn" Binding="{Binding Path=CCCLOCKTYPE}" Header="CCCLOCKTYPE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cCFORMATEColumn" Binding="{Binding Path=CCFORMATE}" Header="CCFORMATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cCNEWDATEColumn" Binding="{Binding Path=CCNEWDATE}" Header="CCNEWDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cCNEWUSERColumn" Binding="{Binding Path=CCNEWUSER}" Header="CCNEWUSER" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cCLASTDATEColumn" Binding="{Binding Path=CCLASTDATE}" Header="CCLASTDATE" Width="SizeToHeader" />
                                <DataGridTextColumn x:Name="cCLASTUSERColumn" Binding="{Binding Path=CCLASTUSER}" Header="CCLASTUSER" Width="SizeToHeader" />
                            </DataGrid.Columns>
                        </DataGrid>
                    </TabItem>
                </TabControl>
            </TabItem>
          </TabControl>
    </Grid>
</UserControl>
